<template>
  <svg
    :class="[pointer ? 'pointer' : '']"
    width="16px"
    class="yindu-icon"
    height="16px"
    viewBox="0 0 16 16"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
  >
    <defs>
      <polygon
        id="consult-path-1"
        points="0 0 13.469 0 13.469 12.2869 0 12.2869"
      ></polygon>
      <polygon
        id="consult-path-3"
        points="0 0 9.4235 0 9.4235 8.241 0 8.241"
      ></polygon>
    </defs>
    <g
      id="页面-1"
      stroke="none"
      stroke-width="1"
      fill="none"
      fill-rule="evenodd"
    >
      <g id="切图" transform="translate(-591.000000, -111.000000)">
        <g id="编组-3" transform="translate(591.000000, 111.000000)">
          <g id="编组" transform="translate(0.000000, 1.000000)">
            <g>
              <mask id="consult-mask-2" fill="white">
                <use xlink:href="#consult-path-1"></use>
              </mask>
              <g id="Clip-2"></g>
              <path
                d="M6.988,12.2869 L3.279,12.2869 C2.495,12.2869 1.856,11.6479 1.856,10.8629 L1.856,7.9999 L-1.33848488e-12,6.1439 L1.856,4.2869 L1.856,1.4229 C1.856,0.6389 2.495,-0.0001 3.279,-0.0001 L12.046,-0.0001 C12.83,-0.0001 13.469,0.6389 13.469,1.4229 L13.469,6.1439 L12.645,6.1439 L12.645,1.4229 C12.645,1.0929 12.376,0.8239 12.046,0.8239 L3.279,0.8239 C2.949,0.8239 2.681,1.0929 2.681,1.4229 L2.681,4.6279 L1.165,6.1439 L2.681,7.6579 L2.681,10.8629 C2.681,11.1939 2.949,11.4629 3.279,11.4629 L6.988,11.4629 L6.988,12.2869 Z"
                id="Fill-1"
                fill="#3D88F2"
                mask="url(#consult-mask-2)"
              ></path>
            </g>
            <g transform="translate(6.576200, 5.731700)">
              <mask id="consult-mask-4" fill="white">
                <use xlink:href="#consult-path-3"></use>
              </mask>
              <g id="Clip-4"></g>
              <path
                d="M0.972,0.824 C0.891,0.824 0.824,0.891 0.824,0.972 L0.824,7.269 C0.824,7.35 0.891,7.417 0.972,7.417 L6.932,7.417 C7.013,7.417 7.08,7.35 7.08,7.269 L7.08,5.298 L8.258,4.121 L7.08,2.942 L7.08,0.972 C7.08,0.891 7.013,0.824 6.932,0.824 L0.972,0.824 Z M6.932,8.241 L0.972,8.241 C0.436,8.241 -4.6629367e-13,7.805 -4.6629367e-13,7.269 L-4.6629367e-13,0.972 C-4.6629367e-13,0.436 0.436,-7.10542736e-15 0.972,-7.10542736e-15 L6.932,-7.10542736e-15 C7.468,-7.10542736e-15 7.904,0.436 7.904,0.972 L7.904,2.601 L9.424,4.121 L7.904,5.639 L7.904,7.269 C7.904,7.805 7.468,8.241 6.932,8.241 L6.932,8.241 Z"
                id="Fill-3"
                fill="#3D88F2"
                mask="url(#consult-mask-4)"
              ></path>
            </g>
          </g>
          <rect id="矩形" x="0" y="0" width="16" height="16"></rect>
        </g>
      </g>
    </g>
  </svg>
</template>

<script setup lang="ts">
type Props = {
  fill?: string;
  pointer?: boolean;
};

const props = withDefaults(defineProps<Props>(), {
  fill: "#3D88F2",
  pointer: true,
});

const fillColor = computed(() => {
  return props.fill;
});
</script>
<style scoped lang="less">
.yindu-icon {
  & path {
    fill: v-bind(fillColor);
  }
}
</style>
